package work.huangxin.share.util;

/**
 * @author: 张锦标
 * @date: 2023/4/21 15:15
 * ThreadLocalUtil类
 */
public class ThreadLocalUtil {
    private static final ThreadLocal<Long> tl = new ThreadLocal<>();

    public static void set(Long id){
        tl.set(id);
    }
    public static Long get(){
        return tl.get();
    }
}
